import Vue from 'vue'
import App from './App.vue'
import Vant, { Lazyload } from 'vant'
import store from './store'
import router from './router'
import 'amfe-flexible'
import 'vant/lib/index.css'
import './commons/css/common.scss'
import './permission'
import api from './api'
import cfg from '@/config'

// 瀑布流


Vue.config.productionTip = false
// 定义全局时间戳过滤器
// Object.keys(filters).forEach(key => {
//   Vue.filter(key, filters[key])
// })

Vue.use(Vant)
// Vue.use(wx)
Vue.use(Lazyload)
Vue.prototype.$api=api
if (cfg.type !== 'production') {
  require('eruda').init()
}


Vue.use(Vant)

Vue.use(Lazyload)

new Vue({
  render: h => h(App),
  store,
  router,
}).$mount('#app')
